import { createStore } from 'vuex'
import ModuleUser from './moudle/user.js'

export default createStore({
    state: {
        them:'light'
    },
    mutations: {
        SET_THEM(state, payload) {
            state.them = payload;
        }
    },
    actions: {
        setThem({ commit }, payload) {
            commit('SET_THEM', payload);
        }
    },
    getters: {
        getThem:(state)=> state.them
    },
    modules: {
         ModuleUser,
    }
})

